import request from '@/utils/request'
export function getCases (params) {
  return request({
    url: '/api/Field/CaseDetailSelect/GetCases',
    method: 'get',
    params,
  })
}

export function getCase (caseId) {
  return request({
    url: '/api/Field/CaseDetailSelect/GetCase',
    method: 'get',
    params: { caseId },
  })
}

export function getCaseLogs (params) {
  return request({
    url: '/api/Field/CaseDetailSelect/GetCaseLogs',
    method: 'get',
    params,
  })
}

export function getCaseLog (logId) {
  return request({
    url: '/api/Field/CaseDetailSelect/GetCaseLog',
    method: 'get',
    params: { logId },
  })
}

export function getCaseEmployees (params) {
  return request({
    url: '/api/Field/CaseDetailSelect/GetCaseEmployees',
    method: 'get',
    params,
  })
}

export function getCaseEmployee (ceId) {
  return request({
    url: '/api/Field/CaseDetailSelect/GetCaseEmployee',
    method: 'get',
    params: { ceId },
  })
}
